package com.mgface.framework.annotation;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Configuration注解的类,等价与XML中配置beans 以明确指出该类是Bean配置的信息源
 * @author user
 *
 */
@Configuration
public class SpringConfig {
	@Bean(name = "piano") // @Bean标注方法等价于XML中配置的bean
	public Piano piano() {
		return new Piano();
	}
}
